package com.jzo2o.customer.controller.open;

import com.jzo2o.common.model.Result;
import com.jzo2o.customer.model.dto.request.InstitutionRegistrReqDTO;
import com.jzo2o.customer.service.ILoginService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController("institutionRegisterController")
@RequestMapping("/open/serve-provider")
@Api(tags = "客户注册相关接口")
public class InstitutionRegisterController {
    @Resource
    private ILoginService loginService;
    @PostMapping("/institution/register")
    @ApiOperation("服务人员/机构注册账号")
    public Result institutionRegister(@RequestBody InstitutionRegistrReqDTO institutionRegistrReqDTO) {
         loginService.institutionRegister(institutionRegistrReqDTO);
        return Result.ok();
    }

}
